import { request } from 'umi';
/** 添加讨论 POST /api/discuss/add */

export async function addDiscuss(body, options) {
  return request('/api/discuss/add', {
    method: 'POST',
    data: body,
    ...(options || {}),
  });
}
/** 获取所有讨论 GET /api/discuss/getAll */

export async function getAllDiscuss(options) {
  return request('/api/discuss/getAll', {
    method: 'GET',
    ...(options || {}),
  });
}
